Allow and start using C99 declaration-after-statement
authorColin Walters <walters@verbum.org>
Fri, 3 Mar 2017 17:10:46 +0000 (12:10 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 6 Mar 2017 18:33:50 +0000 (18:33 +0000)
commit3219a5d0ee4bf10479363690e05400ebdab18be3
tree82b5494d924e69479ab6dc19513e5d88d2c9f26d
parent574c3ea6f935c392da99a721907a98086eeaad44
Allow and start using C99 declaration-after-statement

I've seen code in a few places that I think on balance is definitely better this
way.  Some of our functions have huge variable declaration sections.
This change includes one small example where we could start using declarations
after statements.

A concern I had was - how does this interact with `__attribute__((cleanup))` and
early returns? I tested it, and AFAICS the behavior is what you'd expect - the
cleanup function isn't called if its variable isn't reachable.

Closes: #718
Approved by: jlebon
configure.ac
src/libostree/ostree-repo.c